package com.examiner.service;

import com.examiner.bean.Department;

import java.util.List;

public interface DepartmentService {

    Department findByUserName(String userName);

    Department addDepartment(Department department);

    List<Department> getDepartmentList(String superior);

    Boolean existsById(Integer id);

    Boolean removeDepartment(Integer id);

    Department changeDepartmentInfo(Department department);

    List<Department> getAllDepartmentList(String superior);

    void changeExaminer(Department department) throws Exception;

    Department findById(Integer id) throws Exception;
}
